﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using KPIS.GERP.GHRMS.DAL;

namespace KPIS.GERP.GHRMS.BLL
{
    public class TrainingScholarshipExpenseBLL
    {
        ConvertNullable cn = new ConvertNullable();
        private static readonly TrainingScholarshipExpenseDAL dal = new TrainingScholarshipExpenseDAL();

        public DataSet GetData(string exp_seq)
        {
            Nullable<int> iexp_seq = cn.ConvertNullInt(exp_seq);
            return dal.GetData(iexp_seq);
        }
        public void Insert(string exp_descr, string created_by)
        {
            int icreated_by = Convert.ToInt32(created_by);
            dal.Insert(exp_descr,icreated_by);
        }
        public void Update(string exp_seq, string exp_descr, string updated_by)
        {
            int iexp_seq = Convert.ToInt32(exp_seq);
            int iupdated_by = Convert.ToInt32(updated_by);
            dal.Update(iexp_seq, exp_descr, iupdated_by);
        }
        public void Delete(string exp_seq, string updated_by)
        {
            int iexp_seq = Convert.ToInt32(exp_seq);
            int iupdated_by = Convert.ToInt32(updated_by);
            dal.Delete(iexp_seq, iupdated_by);

        }
    }
}
